8e3fcdf03e6758daf84c178e9b3e24b05a57101e,src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java,SuggestionPopup,setPosition,#number#number#,243
Before Change
+ "px");
}
if (offsetHeight + getPopupTop() > Window.getClientHeight()) {
top = Window.getClientHeight() - offsetHeight - EXTRASPACE / 2;
if (top < 0)
top = 0;
} else {
top = getPopupTop();
}
// fetch real width (mac FF bugs here due GWT popups overflow:auto )
offsetWidth = DOM.getElementPropertyInt(DOM.getFirstChild(menu
.getElement()), "offsetWidth");
if (offsetWidth + getPopupLeft() > Window.getClientWidth()) {
left = IFilterSelect.this.getAbsoluteLeft()
+ IFilterSelect.this.getOffsetWidth() - offsetWidth;
if (left < 0)
After Change
+ "px");
}
if (offsetHeight + getPopupTop() > Window.getClientHeight()
+ Window.getScrollTop()) {
top = Window.getClientHeight() + Window.getScrollTop()
- offsetHeight - EXTRASPACE
- IFilterSelect.this.getOffsetHeight();
if (top < 0) {
top = 0;
}
} else {
top = getPopupTop();
}
// fetch real width (mac FF bugs here due GWT popups overflow:auto )
offsetWidth = DOM.getElementPropertyInt(DOM.getFirstChild(menu
.getElement()), "offsetWidth");
if (offsetWidth + getPopupLeft() > Window.getClientWidth()
+ Window.getScrollLeft()) {
left = IFilterSelect.this.getAbsoluteLeft()
+ IFilterSelect.this.getOffsetWidth()
+ Window.getScrollLeft() - offsetWidth;